#ifndef _KEYWORD_H_
#define _KEYWORD_H_
#include <map>
using namespace std;

struct page_t;
struct url_t;

struct keyword_t
{
	url_t* url;
	map<string, int> keywords;	
};


keyword_t* create_keyword(url_t* url);
keyword_t* transfer_keyword_from_page(page_t* page);
int release_keyword(void* keyword);
int add_keyword(keyword_t* keyword, const string& word, int count);


void print_keyword(keyword_t* keyword);

#endif
